package com.payment.trans;

import com.payment.request.TransRequest;
import com.payment.vo.PayResult;


/**
 * @ClassName: AbstractTrans
 * @Description:
 * @author: fengcheng
 * @date: 2021/03/25
 */
public abstract class AbstractTrans {

//    /**
//     * 获取交易码
//     */
//    public String getTransCode() {
//        return getClass().getAnnotation(Component.class).value();
//    }


    /**
     * 执行支付操作
     *
     * @param request
     * @return
     */
    public abstract PayResult execute(TransRequest request);
}
